package com.xiaodu.dynamicdatasource.mapper;

import com.xiaodu.dynamicdatasource.anno.SelectDB;
import com.xiaodu.dynamicdatasource.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author: dutianjie
 * @date: 2021/4/22
 * @version: v1.0.0
 * @description: 描述
 **/
@Mapper
@Repository
public interface UserMapper {

    @Select("select * from db_test.t_user where u_id = #{id}")
    @SelectDB("pgDataSource")
    UserEntity getOneById(String id);
}
